package models.common.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;

import models.common.entity.t_commercial_paper_record.ComerPaperStatus;
import models.common.entity.t_commercial_paper_record.RecordType;


/**
 * 跟踪表的显示bean
 *@author xiaojun
 *@version 2017-4-24 上午9:57:23
 */
@Entity
public class CommercialPaperRecord implements Serializable{

	@Id
	public long id;
	/**商票id*/
	public long commer_paper_id;
	/**商票操作类型*/
	public int type;
	/**接手人id*/
	public long receive_id;
	/**出票人id*/
	public long open_ticket_id;
	/**付款状态*/
	public int comer_paper_status;
	/**说明*/
	public String  remark;
	/**时间*/
	public Date paper_datetime;
	/**接收人*/
	public String  receive_name;
	/**出票人*/
	public String   open_ticket_name;
	/**操作人id*/
	public long  operator_id;
	/**操作人*/
	public String   operator_name;
	  /**获取付款状态*/
    public ComerPaperStatus getPaperStatus() {
    	ComerPaperStatus status = ComerPaperStatus.getEnum(this.comer_paper_status);
		
		return status;
	}
    /**获取操作类型*/
    public RecordType getType() {
    	RecordType status = RecordType.getEnum(this.type);
		
		return status;
	}
}
